
package com.xb.loan.usercenter.service.user;


import com.xb.loan.log.exception.BizException;
import com.xb.loan.usercenter.service.user.bean.UserPhoneValVO;

public interface IUserPhoneValService {

	/**
	 * 添加手机验证码记录
	 * @param userPhoneValVO	用户手机号码验证VO
	 * @return					返回添加的记录条数
	 */
	public int addPhoneValidate(UserPhoneValVO userPhoneValVO) throws BizException;
	
	/**
	 * 验证手机记录
	 * @param userId		用户编码
	 * @param phone			手机号码
	 * @param phoneKey		手机验证KEY
	 * @return				返回验证是否成功
	 */
	public boolean validatePhone(String userId, String phone, String phoneKey) throws BizException;

	/**
	 * 手机验证码校验，不修改状态
	 * @param phone
	 * @param phoneKey
	 * @return
	 * @throws BizException
	 */
	public boolean validatePhone(String phone, String phoneKey) throws BizException;
	
}
